package com.example.ll_video.bean;

import com.example.ll_video.constant.Constant;

import java.io.Serializable;

public class VideoData implements Serializable {

    private String id;
    private String cid;
    private String name;
    private String content;
    private String linkurl;
    private String picurl;
    private String sort;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getLinkurl() {
        return linkurl;
    }

    public void setLinkurl(String linkurl) {
        this.linkurl = linkurl;
    }

    public String getPicurl() {
        if (picurl.contains("http")) {
            return picurl;
        } else {
            return Constant.HOST + picurl;
        }
    }

    public void setPicurl(String picurl) {
        this.picurl = picurl;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }
}
